import App from './App'


import API from "./common/api.js"
import BAK from "common/api/bak.js"
import USER from "common/api/user.js"
import QUESTIONS from "common/api/questions.js"
import LIKE from "common/api/like.js"
import Exam from "common/api/exam.js"

import http from "./common/http.js"
Vue.prototype.$api=API //全局引用api.js
Vue.prototype.$bak=BAK //全局引用bak.js
Vue.prototype.$user=USER //全局引用bak.js
Vue.prototype.$questions=QUESTIONS //全局引用bak.js
Vue.prototype.$like=LIKE //全局引用bak.js
Vue.prototype.$exam=Exam //全局引用exam.js
Vue.prototype.http=http //全局引用http.js

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif